.tabs {
    border: 1px solid #ef7f4d ;
    display: flex;
  }
  
  .tabs--sidebar {
    width: 70px;
    flex-shrink: 0;
    background: #ef7f4d;
  }
  
  .tabs--button {
    display: block;
    padding: 10px;
    background: #212529;
    border: none;
    width: 100%;
    outline: none;
    cursor: pointer;
  }
  
  .tabs--button:active {
    background: #fff;
  }
  
  .tabs--button:not(:last-of-type){
    border-bottom: 1px solid #ef7f4d;
  }
  
  .tabs--button--active {
    font-weight: bold;
    border-right: 2px solid rgb(0, 0, 0);
    background: #fa7d17;
  }
  
  .tabs--content {
    padding: 15px;
    font-size: 0.8rem;
    display: none;
  }

  .tabs--content--active {
    display: block;
  }


  
  
.BOX {
  display: grid;
  width: 100%;
  margin: 40px auto;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}

.Face img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.BOX1 {
  position: relative;
}

.Face h2 {
  position: absolute;
  font-size: x-large;
  margin: auto;
  top: 15%;
  left: 10%;
  right: 10%;
}

.Behind {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  color: white;
  padding: 15px;
  transform: perspective(600px) rotateY(180deg);
  transition: transform .5s linear 0s;
  backface-visibility: hidden;
  border-radius: 10px
}

.Face {
  color: white;
  transform: perspective(600px) rotateY(0deg);
  transition: transform .5s linear 0s;


}

.BOX1:hover>.Face {
  transform: perspective(600px) rotateY(-180deg);
  cursor: pointer;
}

.BOX1:hover>.Behind {
  transform: perspective(600px) rotateY(0deg);
  cursor: pointer;


}

@media(max-width: 800px) {
  .BOX {
      grid-template-columns: repeat(2, 1fr);

  }
}

@media(max-width: 500px) {
  .BOX {
      grid-template-columns: repeat(1, 1fr);

  }
}

